Documentation Index
Fetch the complete documentation index at: https://sequence-0fb8d9e6-api_docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Name | Type | Description |
|---|
params.config | SdkConfig | Optional configuration parameters |
params.marketplaceConfig | MarketplaceConfig | Optional Marketplace configuration parameters |
params.cardType | CardType | Optional filter by marketplace type |
params.query | any | Optional React Query configuration |
Returns
Query result containing an array of collections with metadata configured in Sequence Builder
Import
import { useCollection } from "@0xsequence/marketplace-sdk/react";
Example
Basic usage:
const { data: collections, isLoading } = useListCollections();
if (isLoading) return <div>Loading collections...</div>;
return (
<div>
{collections?.map(collection => (
<div key={collection.itemsAddress}>
{collection.name}
</div>
))}
</div>
);
Filtering by marketplace type:
const { data: marketCollections } = useListCollections({
cardType: 'market'
});